package com.jy.horny.function

import com.jy.chat.kit.utils.RongConfigUtil
import com.jy.horny.base.BaseVMActivity
import com.jy.horny.base.HttpRequestListener
import com.jy.horny.databinding.ActivityLauncherBinding
import com.jy.horny.function.login.LoginActivity
import com.jy.horny.model.IMTokenModel
import com.lib.module_base.utils.mainHandler

/**
 * 启动页
 */
class LauncherActivity : BaseVMActivity<ActivityLauncherBinding, LauncherViewModel>(
    ActivityLauncherBinding::inflate,
    LauncherViewModel::class.java
) {
    override fun initData() {
        mainHandler.postDelayed({
            //跳转登录
            LoginActivity.start(this)

            //MainActivity.start(this)

        }, 4000)
        setRongConfig()
    }

    override fun onDestroy() {
        super.onDestroy()
        binding.lottieLauncherAnim.cancelAnimation()
    }

    fun setRongConfig() {
        RongConfigUtil.configurationRong()
    }

}